package com.nervenets.web.controller.admin;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ManagerBankEditParams extends TokenParams {
    @ApiModelProperty(value = "银行ID，传0或不传为新建")
    private long bankId;
    @ApiModelProperty(value = "是否为对公账号", required = true)
    private boolean company;
    @ApiModelProperty(value = "开户名", required = true)
    @NotNull(message = "开户名不能为空")
    private String name;
    @ApiModelProperty(value = "银行卡号", required = true)
    @NotNull(message = "银行卡号不能为空")
    private String number;
    @ApiModelProperty(value = "银行名称", required = true)
    @NotNull(message = "银行名称不能为空")
    private String bankName;
    @ApiModelProperty(value = "银行网点", required = true)
    @NotNull(message = "银行网点不能为空")
    private String bankBranch;
    @ApiModelProperty(value = "是否设置为默认", required = true)
    @NotNull(message = "是否设置为默认不能为空")
    private boolean def;
}
